package es.ceura.wilder.datastructures.response;

/**
 *
 * @author Jorge Madrid
 */
public enum HTTPCode {

    HTTP_200("200", "OK"),
    HTTP_404("404", "NOT FOUND"),
    HTTP_400("400", "BAD REQUEST");
    private String name, message;

    private HTTPCode(String name, String message) {
        this.name = name;
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    public String getName() {
        return name;
    }

    public void setName(String errorName) {
        this.name = errorName;
    }
}
